﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace SyncList.Business
{
    public static class Extensions
    {

        /// <summary>
        /// Ajouter des items à la collection
        /// </summary>
        /// <typeparam name="T">Type</typeparam>
        /// <param name="range">Liste à ajouter</param>
        /// <param name="source">Source</param>
        public static void AddRange<T>(this ObservableCollection<T> source, IEnumerable<T> range)
        {
            foreach (T item in range)
                source.Add(item);
        }


    }
}
